/*
 * @Description  : 
 * @Author       : zhao
 * @Date         : 2022-07-25 10:50:10
 * @LastEditors  : zhao
 * @LastEditTime : 2022-08-02 18:03:31
 */



import { useUserInfo } from '/@/stores/userInfo'
const { getWorkCompany } = useUserInfo()
const data = {
    searchType: [
        { label: '用户名：', type: 'input', placeholder: '请输入用户名', prop: "UserName", },
        { label: '手机号：', type: 'input', placeholder: '请输入手机号', prop: "Phone" },
        { label: '真实姓名：', type: 'input', placeholder: '请输入真实姓名', prop: "RealName" },
        { label: '工作单位：', type: 'input', placeholder: '请输入工作单位', prop: "WorkCompany", options: [] },
        { label: '单位性质：', type: 'input', placeholder: '请输入单位性质', prop: "UnitProperties" },

        {
            type: 'button', options: [
                { name: '查询', icon: 'fa fa-search' },
            ]
        },
    ],
    tableHeader: [
        { prop: 'userName', label: '用户名', width: '' },
        { prop: 'phone', label: '手机号', width: '' },
        { prop: 'realName', label: '真实姓名', width: '' },
        { prop: 'workCompany', label: '工作单位', width: '' },
        { prop: 'unitProperties', label: '单位性质', width: '' },
        { prop: 'profession', label: '所属行业', width: '' },

        {
            label: '操作', width: '160', type: 'button', options: [
                { name: '详情' },

            ]
        },
    ],
    tableData: []
}
const res = <any>getWorkCompany()

data.searchType[3].options = res.data
export default data